package com.hkyp.ss.course.provider.model;


import com.hkyp.ss.course.provider.model.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;



/**
 * @Description: 导航栏表
 * @Author:
 * @CreateDate: 2018/7/18 14:25
 */
@Data
@Entity
@DynamicUpdate
@DynamicInsert
@EqualsAndHashCode(callSuper=true)
public class NavigationItem extends BaseEntity {

    private static final long serialVersionUID = 201L;


    /**
     * 目前共三级导航(10000-990000)
     *
     *
     */
    @Column(name = "code")
    private Long code;


    /**
     *    '导航栏的字面值,如 IT等'
     *
     */
    @Column(name="value",columnDefinition="varchar(30) COMMENT '导航栏的字面值,如 IT等'")
    private String value;

    /**
     * 导航栏等级
     *
     */
    @Column(name="grade", columnDefinition="int COMMENT '导航栏等级1,2,3'")
    private Integer grade;


}
